
h1 {
    color: #333;
    text-align: center;
    margin-top: 50px;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
  }
  
  th,
  td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
  }
  
  th {
    background-color: #f0f0f0;
  }
  button {
    background-color: #f00;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 10px;
  }
  
  button.edit {
    background-color: #007bff;
  }
  
  button.view {
    background-color: #28a745;
  }
  
  button.delete {
    background-color: #dc3545;
  }
  
  button:hover {
    background-color: #d00;
  }
  
  /* 新增样式 */
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
  }
  
  th,
  td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
  }
  
  th {
    background-color: #f0f0f0;
  }
  
  /* 为操作列设置固定宽度 */
  td:last-child {
    width: 250px;
  }
  /* 斑马效果 */
  tbody tr:nth-child(even) {
    background-color: #f9f9f9;
  }
  .add-btn-container {
    display: flex;
    justify-content: left;
    margin-bottom: 20px;
  }

  .add-btn-container button {
    margin-right: 10px;
    background-color: #007bff;
  }
  
  .add-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
  }
  
  .add-btn:hover {
    background-color: #0056b3;
  }
  
  .pagination {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
  
  .pagination button {
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #ccc;
    color: #333;
    cursor: pointer;
    margin: 0 5px;
    padding: 5px 10px;
    transition:all 0.3s ease;
  } 

  .pagination button:hover {
    background-color: #f3f3f3;
    border: #28a745 1px solid;
    font:bolder;
  } 
  .pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
  }
  .pagination button.selected {
    height: 30px;
    font-weight: bold;
    background-color: #999;
  }

 .pagination input,select {
    border-radius: 5px;
    border: 1px solid #ccc;
    margin: 0 5px;
    padding: 5px 10px;
    text-align: center;
    width: 50px;
  }
  .pagination select {
    width: 100px;
  }
  .pagination span {
    margin: 0 5px;
  }
  .search-container {
    display: flex;
    align-items: center;
  }

 .search-container input {
    margin-right: 10px;
  }
 
  .modal {
    background-color: rgba(0, 0, 0, 0.4);
    height: 100%;
    left: 0;
    overflow: auto;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
  }

  .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    min-width: 50%;
    max-width: 80%;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .button-group {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
  }

  .button-group button {
    margin-left: 10px;
  }

  .close {
    color: #aaa;
    cursor: pointer;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }

  .close:hover,
  .close:focus {
    color: #000;
    text-decoration: none;
  }